$item_size: 52px;

@import 'mixin';
@import 'special';


.toolbar{
	position: fixed;
	left: 200px;
	bottom: 0;
	background-color: #fff;

	& .toolbar_item{
		position: relative;
		display: block;
		width: $item_size;
		height: $item_size;
		margin-bottom: 1px;
		text-align: center;
		text-decoration: none;
		@include transition(transform .5s linear,opacity .5s linear);

		&:hover{
			&.toolbar_item_advice:after,&.toolbar_item_wechat:after{
				@include opacity(1);
				@include scale(1);
			}

			& .toolbar_item_text{
				&:before{
					top: -$item_size;
				}

				&:after{
					top: 0;
				}
			}
		}

		& .toolbar_item_text{
			overflow: hidden;

			&,&:before,&:after{
				position: absolute;
				width: $item_size;
				height: $item_size;
			}

			@extend [class^="icon-"];

			&:before,&:after{
				content: '';
				left: 0;
				display: block;
				color: #fff;
				text-align: center;
				transition: top .5s linear;
			}

			&:before{
				top: 0;
				font-size: 25px;
				line-height: $item_size;
				background-color: #d0d6d9;
			}

			&:after{
				top: $item_size;
				padding-top: 12px;
				font-size: 12px;
				text-align: center;
				line-height: 1.2;
				background-color: #98a1a6;
				white-space: pre;
			}
		}

		&.toolbar_item_advice{
			& .toolbar_item_text{
				@extend .icon-bubble;

				&:after{
					content: "意见\A反馈";
				}
			}
		}

		&.toolbar_item_mobile{
			& .toolbar_item_text{
				@extend .icon-mobile;

				&:after{
					content: "APP\A下载";
				}
			}

		}

		&.toolbar_item_wechat{
			& .toolbar_item_text{
				@extend .icon-wechat;

				&:after{
					content: "公众\A账号";
				}
			}
		}

		&.toolbar_item_top{
			display: none;

			& .toolbar_item_text{
				@extend .icon-point-up;

				&:after{
					content: "返回\A顶部";
				}
			}
		}
	}
}

.toolbar_item_advice,.toolbar_item_wechat{
            &:after{
				content: '';
				position: absolute;
				display: block;
				right: $item_size;
				bottom: 0;
				width: 160px;
				height: 160px;
				background-image: url(../../img/toolbar.png);
				background-position: -5px -12px;
				@include scale(0.01);
				@include opacity(0);
				@include transform-origin(100% 95%);
				@include transition(transform .5s linear,opacity .5s linear);
            }
		}



@font-face {
	font-family: 'icomoon';
	src:url('../icon/fonts/icomoon.eot?wl5xo8');
	src:url('../icon/fonts/icomoon.eot?#iefixwl5xo8') format('embedded-opentype'),
		url('../icon/fonts/icomoon.ttf?wl5xo8') format('truetype'),
		url('../icon/fonts/icomoon.woff?wl5xo8') format('woff'),
		url('../icon/fonts/icomoon.svg?wl5xo8#icomoon') format('svg');
	font-weight: normal;
	font-style: normal;
}

[class^="icon-"], [class*=" icon-"] {
	font-family: 'icomoon';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;

	/* Better Font Rendering =========== */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.icon-wechat:before {
	content: "\e604";
}
.icon-mobile:before {
	content: "\e600";
}
.icon-point-up:before {
	content: "\e601";
}
.icon-bubble:before {
	content: "\e602";
}
